package cn.tedu.project.oa.sys.department.mapper;


import cn.tedu.project.oa.sys.department.pojo.dto.QueryDepartPara;
import cn.tedu.project.oa.sys.department.pojo.entity.Department;
import cn.tedu.project.oa.sys.department.pojo.vo.DepartmentVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {

    // 添加部门
    int insertDepartment(Department department );

    // 删除部门
    int deleteDepartmentById(Long id);

    // 更新部门
    int updateDepartment(Department department);

    // 获取部门
    List<DepartmentVO> selectDepartmentList(QueryDepartPara queryDepartPara);

    // 获取指定部门
    DepartmentVO selectDepartmentById(Long id);


    int count();
}
